/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-03-18
 * Time: 18:52
 */
public class Exercise {
    //打印素数
    public static boolean prime( int i) {
        for( int j=2;j<i;j++) {
            if( i%j == 0) {
                return false;
            }
        }
        return true;
    }
    public static void main(String[] args) {
        for (int i = 0; i < 100; i++) {
            if(prime(i)) {
                System.out.println(i);
            }
        }
    }
}
